package com.坦克大战.Tank_3;

public class Bomb {
    int x,y;
    int live = 9;  ///生命周期
    boolean isLive = true;  ///生命状态

    public Bomb(int x,int y) {
        this.x = x;
        this.y = y;
    }

    public void lifeDown(){  /// 生命周期缩短，根据生命周期绘制不同图片
        if(live>0){
            live--;
        }
        else{
            isLive = false;
        }
    }
}
